<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
	    <link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/main/css/test.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/main/css/amazeui.min.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/main/css/admin.css">
		<link rel="stylesheet" href="${pageContext.request.contextPath}/main/css/app.css">
		<script type="text/javascript" src="${pageContext.request.contextPath}/main/js/test.js"></script>

	</head>
	
<style>

.left_t
{
background:#005b54;
margin-left:6px;
width:646px;
}
.zz_51LowerGray { background-color: #f3f2f2; color: #000000; }
.typeSearch a:link , .typeSearch a:visited { color:#333333; }
.typeSearch a:hover { color:#ff7300; }
.typeSearch .tsGray { color:#333333; }
.redline
{
  background-color: #fcefe7;
  border-right-width: 1px;
  border-left-width: 1px;
  border-right-style: solid;
  border-left-style: solid;
  border-right-color: #fe8929;
  border-left-color: #fe8929;
  }
  
  
.funIndJobareaPare {
	font-size: 14px;
	line-height: 20px;
	font-weight: bold;
	color: #FF6600;
}
.zz_51High { background-color: #ffa22e; color: #ffffff; }
.zz_51Lower { background-color: #ffffff; color: #000000; }
.zz_51LowerGray { background-color: #f3f2f2; color: #000000; }
.zz_51LowerYellow { background-color: #feffef; color: #000000; }
</style>

	<body>

		<div class="am-cf admin-main">
			<!-- content start -->
			<div class="admin-content">
				<div class="admin-content-body">
					<div class="am-cf am-padding am-padding-bottom-0">
						<div class="am-fl am-cf">
							<strong class="am-text-primary am-text-lg"> </strong><small>
								<i class="icon-home"></i> &gt; 首页 &gt; 维护企业信息</small>
						</div>
					</div>
					<hr>
					<div class="container">
						<div class="am-g" style="margin-top: -30px;">
							<div class="am-u-sm-12">
<form method="post" name="aForm" style="display:inline" id="aForm" >


<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
            
       <td style="padding:0 20px;" bgcolor="#FFFFFF">
       
	       <table width="100%" border="0" cellspacing="0" cellpadding="0">
	           <tr>
	             <td style="border-bottom:1px dotted #333;"><p class="name"><strong>维护企业信息</strong>（融资申请发起前请务必把企业信息填写完整，<span class="red">*</span>为必填项）</p></td>
	           </tr>
	           <tr>
	             <td>&nbsp;</td>
	           </tr>
	        </table>
	        
           <table id="table_ufo" width="100%" border="0" cellspacing="0" cellpadding="0">
             <tbody id="tab">
				 <tr class="t2">
				   <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">企业统一社会信用代码:&nbsp;</span></td>
				   <td title="" align="left">
				   	<input type="text" maxlength="20" id="entCodeCredit" name="entCodeCredit" value="${chainEntList.entCodeCredit }" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
				   </td>
				 </tr>
               <tr class="t1">
                 <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">企业登录账号:&nbsp;</span></td>
                 <td title="" align="left">
                 	<input type="text" maxlength="20" id="entNo" name="entNo" value="${chainEntList.entNo }" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
                 </td>
               </tr>
               <tr class="t2">
                 <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">企业名称:&nbsp;</span></td>
                 <td title="" align="left">
                 	<input type="text" maxlength="20" id="name" name="name" value="${chainEntList.name }" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
                 </td>
               </tr>		
			   <tr class="t1">
			     <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">手机号:&nbsp;</span></td>
			     <td title="" align="left">
			     	<input type="text" maxlength="20" id="phoneNo" name="phoneNo" value="${chainEntList.phoneNo }" class="textc" style="color:blue;font-size:12px;width:340px" required>            
			     </td>
			   </tr>	
			   <tr class="t2">
				 <td align="right"><span class="red">*</span>融资限额:&nbsp;</td>
				 <td align="left">
				<input type="text" maxlength="30" id="limit" name="limit" value="${chainEntList.limit }" class="textc" readonly/>
				 </td>
			   </tr>    
			    <tr class="t1">
				 <td align="right"><span class="red">*</span>信用总额度:&nbsp;</td>
				 <td align="left">
				<input type="text" maxlength="30" id="creditLimit" name="creditLimit" value="${chainEntList.creditLimit }" class="textc" readonly/>
				 </td>
				</tr>    
				<tr class="t2">
				 <td align="right"><span class="red">*</span>剩余额度:&nbsp;</td>
				 <td align="left">
				<input type="text" maxlength="30" id="remainLimit" name="remainLimit" value="${chainEntList.remainLimit }" class="textc" readonly/>
				 </td>
				</tr>
				<tr class="t1">
				 <td align="right"><span class="red">*</span>经营情况:&nbsp;</td>
				 <td align="left">
				<input type="text" maxlength="30" id="status" name="status" value="<c:choose><c:when test='${chainEntList.status eq 0}'>良好</c:when><c:when test='${chainEntList.status eq 1}'>不良</c:when></c:choose>" class="textc" readonly/>
				 </td>
				</tr>      
                <tr class="t2">
                  <td align="right"><span class="red">*</span>资产:&nbsp;</td>
                  <td align="left">
                	<input type="text" maxlength="30" id="property" name="property" value="${chainEntList.property }" class="textc" required/>
                  </td>
                </tr>     
				<tr class="t1">
				  <td align="right"><span class="red">*</span>一年的销售额:&nbsp;</td>
				  <td align="left">
					<input type="text" maxlength="30" id="sales" name="sales" value="${chainEntList.sales }" class="textc" required/>
				  </td>
				</tr>     
            	
				<tr class="t2">
				  <td width="40%" align="right"><span class="red">*</span><span style="color:blue;font-size:12px;font-weight:normal">准入状态:&nbsp;</span></td>
				  <td title="" align="left">
				  	<input type="text" maxlength="20" id="instatus" name="instatus" value="<c:choose><c:when test='${chainEntList.instatus eq 0}'>未准入</c:when><c:when test='${chainEntList.instatus eq 1}'>待审核</c:when><c:when test='${chainEntList.instatus eq 2}'>已准入</c:when></c:choose>" class="textc" style="color:blue;font-size:12px;width:340px" readonly required>            
				  </td>
				</tr>	
						   
	    </table>
	    <table style="border-top:1px dotted #333;" width="100%" border="0" cellspacing="0" cellpadding="0">
	         <tr>
	         <!-- 判断企业是否在白名单中，如果不在，则不显示按钮，改为显示文字 -->
			<c:choose>
			    <c:when test="${isExist}">
			        <!-- 显示按钮 -->
			        <td width="110" height="100">&nbsp;</td>
			        <td title="" align="left" style="height:50px;line-height:20px">
			            <c:if test="${chainEntList.instatus == 0}">
			                <input type="submit" class="book_in_button"  value="准入申请" formaction="/gongyinglian/InChainEntReqController"/>
			            </c:if>
			            &nbsp;&nbsp;&nbsp;
			            <input type="submit" class="book_in_button" value="保 存" formaction="/gongyinglian/SaveChainEntMsgController"/>
			        </td>
			    </c:when>
			    <c:otherwise>
			        <!-- 显示红色文字提示 -->
			        <td colspan="2" style="text-align: center; color: red;">${msg}</td>
			    </c:otherwise>
			</c:choose>
	         </tr>
	    </table>
	    
      </td>
    
  </tr>
  
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
  
</table>

</form>

							</div>
						</div>
					</div>

				</div>
				<!-- content end -->
			</div>
		</div>
				<script>
    // 使用JSTL或EL表达式获取请求是否成功的状态
        console.log(msg);
    console.log(isExist);
    var isRequestSuccess = ${isRequestSuccess};

    // 显示相应的提醒框
    if (isRequestSuccess) {
        alert("准入申请成功！");
    } else {
        alert("准入申请失败！");
    }
</script>

		<!--[if lt IE 9]>
<script src="js/jquery.min.js"></script>
<script src="js/modernizr.js"></script>
<script src="js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

		<!--[if (gte IE 9)|!(IE)]><!-->
		<script src="js/jquery-1.11.3.min.js"></script>
		<!--<![endif]-->
		<script type="text/javascript" src="js/plugs.js"></script>
		<script>
			$(function() {
				$(".btnAdd").click(function() {
					$.jq_Panel({
						title: "添加用户",
						url: "addUser.html",
						iframeWidth: 800,
						iframeHeight: 600,
					});
				});

				$(".btnEdit").click(function() {
					$.jq_Panel({
						title: "编辑用户",
						url: "addUser.html",
						iframeWidth: 800,
						iframeHeight: 600,
					});

				});

			});
		</script>
	</body>

</html>